home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / gcc / gcc261a.zoo / info / gcc.info-4 < prev    next >
Encoding:
GNU Info File  |  1994-10-31  |  49.5 KB  |  1,210 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.54 from the input
  2. file gcc.texi.
  3.  
  4.    This file documents the use and the internals of the GNU compiler.
  5.  
  6.    Published by the Free Software Foundation 675 Massachusetts Avenue
  7. Cambridge, MA 02139 USA
  8.  
  9.    Copyright (C) 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
  10.  
  11.    Permission is granted to make and distribute verbatim copies of this
  12. manual provided the copyright notice and this permission notice are
  13. preserved on all copies.
  14.  
  15.    Permission is granted to copy and distribute modified versions of
  16. this manual under the conditions for verbatim copying, provided also
  17. that the sections entitled "GNU General Public License" and "Protect
  18. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  19. original, and provided that the entire resulting derived work is
  20. distributed under the terms of a permission notice identical to this
  21. one.
  22.  
  23.    Permission is granted to copy and distribute translations of this
  24. manual into another language, under the above conditions for modified
  25. versions, except that the sections entitled "GNU General Public
  26. License" and "Protect Your Freedom--Fight `Look And Feel'", and this
  27. permission notice, may be included in translations approved by the Free
  28. Software Foundation instead of in the original English.
  29.  
  30. File: gcc.info,  Node: M88K Options,  Next: RS/6000 and PowerPC Options,  Prev: ARM Options,  Up: Submodel Options
  31.  
  32. M88K Options
  33. ------------
  34.  
  35.    These `-m' options are defined for Motorola 88k architectures:
  36.  
  37. `-m88000'
  38.      Generate code that works well on both the m88100 and the m88110.
  39.  
  40. `-m88100'
  41.      Generate code that works best for the m88100, but that also runs
  42.      on the m88110.
  43.  
  44. `-m88110'
  45.      Generate code that works best for the m88110, and may not run on
  46.      the m88100.
  47.  
  48. `-mbig-pic'
  49.      Obsolete option to be removed from the next revision.  Use `-fPIC'.
  50.  
  51. `-midentify-revision'
  52.      Include an `ident' directive in the assembler output recording the
  53.      source file name, compiler name and version, timestamp, and
  54.      compilation flags used.
  55.  
  56. `-mno-underscores'
  57.      In assembler output, emit symbol names without adding an underscore
  58.      character at the beginning of each name.  The default is to use an
  59.      underscore as prefix on each name.
  60.  
  61. `-mocs-debug-info'
  62. `-mno-ocs-debug-info'
  63.      Include (or omit) additional debugging information (about
  64.      registers used in each stack frame) as specified in the 88open
  65.      Object Compatibility Standard, "OCS".  This extra information
  66.      allows debugging of code that has had the frame pointer
  67.      eliminated.  The default for DG/UX, SVr4, and Delta 88 SVr3.2 is
  68.      to include this information; other 88k configurations omit this
  69.      information by default.
  70.  
  71. `-mocs-frame-position'
  72.      When emitting COFF debugging information for automatic variables
  73.      and parameters stored on the stack, use the offset from the
  74.      canonical frame address, which is the stack pointer (register 31)
  75.      on entry to the function.  The DG/UX, SVr4, Delta88 SVr3.2, and
  76.      BCS configurations use `-mocs-frame-position'; other 88k
  77.      configurations have the default `-mno-ocs-frame-position'.
  78.  
  79. `-mno-ocs-frame-position'
  80.      When emitting COFF debugging information for automatic variables
  81.      and parameters stored on the stack, use the offset from the frame
  82.      pointer register (register 30).  When this option is in effect,
  83.      the frame pointer is not eliminated when debugging information is
  84.      selected by the -g switch.
  85.  
  86. `-moptimize-arg-area'
  87. `-mno-optimize-arg-area'
  88.      Control how function arguments are stored in stack frames.
  89.      `-moptimize-arg-area' saves space by optimizing them, but this
  90.      conflicts with the 88open specifications.  The opposite
  91.      alternative, `-mno-optimize-arg-area', agrees with 88open
  92.      standards.  By default GNU CC does not optimize the argument area.
  93.  
  94. `-mshort-data-NUM'
  95.      Generate smaller data references by making them relative to `r0',
  96.      which allows loading a value using a single instruction (rather
  97.      than the usual two).  You control which data references are
  98.      affected by specifying NUM with this option.  For example, if you
  99.      specify `-mshort-data-512', then the data references affected are
  100.      those involving displacements of less than 512 bytes.
  101.      `-mshort-data-NUM' is not effective for NUM greater than 64k.
  102.  
  103. `-mserialize-volatile'
  104. `-mno-serialize-volatile'
  105.      Do, or do not, generate code to guarantee sequential consistency of
  106.      volatile memory references.
  107.  
  108.      GNU CC always guarantees consistency by default.
  109.  
  110.      The order of memory references made by the m88110 processor does
  111.      not always match the order of the instructions requesting those
  112.      references.  In particular, a load instruction may execute before
  113.      a preceding store instruction.  Such reordering violates
  114.      sequential consistency of volatile memory references, when there
  115.      are multiple processors.
  116.  
  117.      The extra code generated to guarantee consistency may affect the
  118.      performance of your application.  If you know that you can safely
  119.      forgo this guarantee, you may use the option
  120.      `-mno-serialize-volatile'.
  121.  
  122. `-msvr4'
  123. `-msvr3'
  124.      Turn on (`-msvr4') or off (`-msvr3') compiler extensions related
  125.      to System V release 4 (SVr4).  This controls the following:
  126.  
  127.        1. Which variant of the assembler syntax to emit (which you can
  128.           select independently using `-mversion-03.00').
  129.  
  130.        2. `-msvr4' makes the C preprocessor recognize `#pragma weak'
  131.           that is used on System V release 4.
  132.  
  133.        3. `-msvr4' makes GNU CC issue additional declaration directives
  134.           used in SVr4.
  135.  
  136.      `-msvr3' is the default for all m88k configurations except the
  137.      SVr4 configuration.
  138.  
  139. `-mversion-03.00'
  140.      In the DG/UX configuration, there are two flavors of SVr4.  This
  141.      option modifies `-msvr4' to select whether the hybrid-COFF or
  142.      real-ELF flavor is used.  All other configurations ignore this
  143.      option.
  144.  
  145. `-mno-check-zero-division'
  146. `-mcheck-zero-division'
  147.      Early models of the 88k architecture had problems with division by
  148.      zero; in particular, many of them didn't trap.  Use these options
  149.      to avoid including (or to include explicitly) additional code to
  150.      detect division by zero and signal an exception.  All GNU CC
  151.      configurations for the 88k use `-mcheck-zero-division' by default.
  152.  
  153. `-muse-div-instruction'
  154.      Do not emit code to check both the divisor and dividend when doing
  155.      signed integer division to see if either is negative, and adjust
  156.      the signs so the divide is done using non-negative numbers.
  157.      Instead, rely on the operating system to calculate the correct
  158.      value when the `div' instruction traps.  This results in different
  159.      behavior when the most negative number is divided by -1, but is
  160.      useful when most or all signed integer divisions are done with
  161.      positive numbers.
  162.  
  163. `-mtrap-large-shift'
  164. `-mhandle-large-shift'
  165.      Include code to detect bit-shifts of more than 31 bits;
  166.      respectively, trap such shifts or emit code to handle them
  167.      properly.  By default GNU CC makes no special provision for large
  168.      bit shifts.
  169.  
  170. `-mwarn-passed-structs'
  171.      Warn when a function passes a struct as an argument or result.
  172.      Structure-passing conventions have changed during the evolution of
  173.      the C language, and are often the source of portability problems.
  174.      By default, GNU CC issues no such warning.
  175.  
  176. File: gcc.info,  Node: RS/6000 and PowerPC Options,  Next: RT Options,  Prev: M88K Options,  Up: Submodel Options
  177.  
  178. IBM RS/6000 and PowerPC Options
  179. -------------------------------
  180.  
  181.    These `-m' options are defined for the IBM RS/6000 and PowerPC:
  182. `-mpower'
  183. `-mno-power'
  184. `-mpower2'
  185. `-mno-power2'
  186. `-mpowerpc'
  187. `-mno-powerpc'
  188. `-mpowerpc-gpopt'
  189. `-mno-powerpc-gpopt'
  190. `-mpowerpc-gfxopt'
  191. `-mno-powerpc-gfxopt'
  192.      GNU CC supports two related instruction set architectures for the
  193.      RS/6000 and PowerPC.  The "POWER" instruction set are those
  194.      instructions supported by the `rios' chip set used in the original
  195.      RS/6000 systems and the "PowerPC" instruction set is the
  196.      architecture of the Motorola MPC6xx microprocessors.  The PowerPC
  197.      architecture defines 64-bit instructions, but they are not
  198.      supported by any current processors.
  199.  
  200.      Neither architecture is a subset of the other.  However there is a
  201.      large common subset of instructions supported by both.  An MQ
  202.      register is included in processors supporting the POWER
  203.      architecture.
  204.  
  205.      You use these options to specify which instructions are available
  206.      on the processor you are using.  The default value of these
  207.      options is determined when configuring GNU CC.  Specifying the
  208.      `-mcpu=CPU_TYPE' overrides the specification of these options.  We
  209.      recommend you use that option rather than these.
  210.  
  211.      The `-mpower' option allows GNU CC to generate instructions that
  212.      are found only in the POWER architecture and to use the MQ
  213.      register.  Specifying `-mpower2' implies `-power' and also allows
  214.      GNU CC to generate instructions that are present in the POWER2
  215.      architecture but not the original POWER architecture.
  216.  
  217.      The `-mpowerpc' option allows GNU CC to generate instructions that
  218.      are found only in the 32-bit subset of the PowerPC architecture.
  219.      Specifying `-mpowerpc-gpopt' implies `-mpowerpc' and also allows
  220.      GNU CC to use the optional PowerPC architecture instructions in the
  221.      General Purpose group, including floating-point square root.
  222.      Specifying `-mpowerpc-gfxopt' implies `-mpowerpc' and also allows
  223.      GNU CC to use the optional PowerPC architecture instructions in
  224.      the Graphics group, including floating-point select.
  225.  
  226.      If you specify both `-mno-power' and `-mno-powerpc', GNU CC will
  227.      use only the instructions in the common subset of both
  228.      architectures plus some special AIX common-mode calls, and will
  229.      not use the MQ register.  Specifying both `-mpower' and `-mpowerpc'
  230.      permits GNU CC to use any instruction from either architecture and
  231.      to allow use of the MQ register; specify this for the Motorola
  232.      MPC601.
  233.  
  234. `-mnew-mnemonics'
  235. `-mold-mnemonics'
  236.      Select which mnemonics to use in the generated assembler code.
  237.      `-mnew-mnemonics' requests output that uses the assembler mnemonics
  238.      defined for the PowerPC architecture, while `-mold-mnemonics'
  239.      requests the assembler mnemonics defined for the POWER
  240.      architecture.  Instructions defined in only one architecture have
  241.      only one mnemonic; GNU CC uses that mnemonic irrespective of which
  242.      of thse options is specified.
  243.  
  244.      PowerPC assemblers support both the old and new mnemonics, as will
  245.      later POWER assemblers.  Current POWER assemblers only support the
  246.      old mnemonics.  Specify `-mnew-mnemonics' if you have an assembler
  247.      that supports them, otherwise specify `-mold-mnemonics'.
  248.  
  249.      The default value of these options depends on how GNU CC was
  250.      configured.  Specifing `-mcpu=CPU_TYPE' sometimes overrides the
  251.      value of these option.  Unless you are building a cross-compiler,
  252.      you should normally not specify either `-mnew-mnemonics' or
  253.      `-mold-mnemonics', but should instead accept the default.
  254.  
  255. `-mcpu=CPU_TYPE'
  256.      Set architecture type, register usage, choice of mnemonics, and
  257.      instruction scheduling parameters for machine type CPU_TYPE.  By
  258.      default, CPU_TYPE is the target system defined when GNU CC was
  259.      configured.  Supported values for CPU_TYPE are `rios1', `rios2',
  260.      `rsc', `601', `603', `604', `power', `powerpc', and `common'.
  261.      `-mcpu=power' and `-mcpu=powerpc' specify generic POWER and pure
  262.      PowerPC (i.e., not MPC601) architecture machine types, with an
  263.      appropriate, generic processor model assumed for scheduling
  264.      purposes.
  265.  
  266.      Specifying `-mcpu=rios1', `-mcpu=rios2', `-mcpu=rsc', or
  267.      `-mcpu=power' enables the `-mpower' option and disables the
  268.      `-mpowerpc' option; `-mcpu=601' enables both the `-mpower' and
  269.      `-mpowerpc' options; `-mcpu=603', `-mcpu=604', and `-mcpu=powerpc'
  270.      enable the `-mpowerpc' option and disable the `-mpower' option;
  271.      `-mcpu=common' disables both the `-mpower' and `-mpowerpc' options.
  272.  
  273.      To generate code that will operate on all members of the RS/6000
  274.      and PowerPC families, specify `-mcpu=common'.  In that case, GNU CC
  275.      will use only the instructions in the common subset of both
  276.      architectures plus some special AIX common-mode calls, and will
  277.      not use the MQ register.  GNU CC assumes a generic processor model
  278.      for scheduling purposes.
  279.  
  280.      Specifying `-mcpu=rios1', `-mcpu=rios2', `-mcpu=rsc', or
  281.      `-mcpu=power' also disables the `new-mnemonics' option.
  282.      Specifying `-mcpu=601', `-mcpu=603', `-mcpu=604', or
  283.      `-mcpu=powerpc' also enables the `new-mnemonics' option.
  284.  
  285. `-mfull-toc'
  286. `-mno-fp-in-toc'
  287. `-mno-sum-in-toc'
  288. `-mminimal-toc'
  289.      Modify generation of the TOC (Table Of Contents), which is created
  290.      for every executable file.  The `-mfull-toc' option is selected by
  291.      default.  In that case, GNU CC will allocate at least one TOC
  292.      entry for each unique non-automatic variable reference in your
  293.      program.  GNU CC will also place floating-point constants in the
  294.      TOC.  However, only 16,384 entries are available in the TOC.
  295.  
  296.      If you receive a linker error message that saying you have
  297.      overflowed the available TOC space, you can reduce the amount of
  298.      TOC space used with the `-mno-fp-in-toc' and `-mno-sum-in-toc'
  299.      options.  `-mno-fp-in-toc' prevents GNU CC from putting
  300.      floating-point constants in the TOC and `-mno-sum-in-toc' forces
  301.      GNU CC to generate code to calculate the sum of an address and a
  302.      constant at run-time instead of putting that sum into the TOC.
  303.      You may specify one or both of these options.  Each causes GNU CC
  304.      to produce very slightly slower and larger code at the expense of
  305.      conserving TOC space.
  306.  
  307.      If you still run out of space in the TOC even when you specify
  308.      both of these options, specify `-mminimal-toc' instead.  This
  309.      option causes GNU CC to make only one TOC entry for every file.
  310.      When you specify this option, GNU CC will produce code that is
  311.      slower and larger but which uses extremely little TOC space.  You
  312.      may wish to use this option only on files that contain less
  313.      frequently executed code.
  314.  
  315. File: gcc.info,  Node: RT Options,  Next: MIPS Options,  Prev: RS/6000 and PowerPC Options,  Up: Submodel Options
  316.  
  317. IBM RT Options
  318. --------------
  319.  
  320.    These `-m' options are defined for the IBM RT PC:
  321.  
  322. `-min-line-mul'
  323.      Use an in-line code sequence for integer multiplies.  This is the
  324.      default.
  325.  
  326. `-mcall-lib-mul'
  327.      Call `lmul$$' for integer multiples.
  328.  
  329. `-mfull-fp-blocks'
  330.      Generate full-size floating point data blocks, including the
  331.      minimum amount of scratch space recommended by IBM.  This is the
  332.      default.
  333.  
  334. `-mminimum-fp-blocks'
  335.      Do not include extra scratch space in floating point data blocks.
  336.      This results in smaller code, but slower execution, since scratch
  337.      space must be allocated dynamically.
  338.  
  339. `-mfp-arg-in-fpregs'
  340.      Use a calling sequence incompatible with the IBM calling
  341.      convention in which floating point arguments are passed in
  342.      floating point registers.  Note that `varargs.h' and `stdargs.h'
  343.      will not work with floating point operands if this option is
  344.      specified.
  345.  
  346. `-mfp-arg-in-gregs'
  347.      Use the normal calling convention for floating point arguments.
  348.      This is the default.
  349.  
  350. `-mhc-struct-return'
  351.      Return structures of more than one word in memory, rather than in a
  352.      register.  This provides compatibility with the MetaWare HighC (hc)
  353.      compiler.  Use the option `-fpcc-struct-return' for compatibility
  354.      with the Portable C Compiler (pcc).
  355.  
  356. `-mnohc-struct-return'
  357.      Return some structures of more than one word in registers, when
  358.      convenient.  This is the default.  For compatibility with the
  359.      IBM-supplied compilers, use the option `-fpcc-struct-return' or the
  360.      option `-mhc-struct-return'.
  361.  
  362. File: gcc.info,  Node: MIPS Options,  Next: i386 Options,  Prev: RT Options,  Up: Submodel Options
  363.  
  364. MIPS Options
  365. ------------
  366.  
  367.    These `-m' options are defined for the MIPS family of computers:
  368.  
  369. `-mcpu=CPU TYPE'
  370.      Assume the defaults for the machine type CPU TYPE when scheduling
  371.      instructions.  The choices for CPU TYPE are `r2000', `r3000',
  372.      `r4000', `r4400', `r4600', and `r6000'.  While picking a specific
  373.      CPU TYPE will schedule things appropriately for that particular
  374.      chip, the compiler will not generate any code that does not meet
  375.      level 1 of the MIPS ISA (instruction set architecture) without the
  376.      `-mips2' or `-mips3' switches being used.
  377.  
  378. `-mips1'
  379.      Issue instructions from level 1 of the MIPS ISA.  This is the
  380.      default.  `r3000' is the default CPU TYPE at this ISA level.
  381.  
  382. `-mips2'
  383.      Issue instructions from level 2 of the MIPS ISA (branch likely,
  384.      square root instructions).  `r6000' is the default CPU TYPE at this
  385.      ISA level.
  386.  
  387. `-mips3'
  388.      Issue instructions from level 3 of the MIPS ISA (64 bit
  389.      instructions).  `r4000' is the default CPU TYPE at this ISA level.
  390.  
  391. `-mfp32'
  392.      Assume that 32 32-bit floating point registers are available.
  393.      This is the default.
  394.  
  395. `-mfp64'
  396.      Assume that 32 64-bit floating point registers are available.
  397.      This is the default when the `-mips3' option is used.
  398.  
  399. `-mgp32'
  400.      Assume that 32 32-bit general purpose registers are available.
  401.      This is the default.
  402.  
  403. `-mgp64'
  404.      Assume that 32 64-bit general purpose registers are available.
  405.      This is the default when the `-mips3' option is used.
  406.  
  407. `-mint64'
  408.      Types long and int are 64 bits.  This works only if `-mips3' is
  409.      also specified.
  410.  
  411. `-mlong64'
  412.      Type long is 64 bits, and type int is 32 bits.  This works only if
  413.      `-mips3' is also specified.
  414.  
  415. `-mmips-as'
  416.      Generate code for the MIPS assembler, and invoke `mips-tfile' to
  417.      add normal debug information.  This is the default for all
  418.      platforms except for the OSF/1 reference platform, using the
  419.      OSF/rose object format.  If the either of the `-gstabs' or
  420.      `-gstabs+' switches are used, the `mips-tfile' program will
  421.      encapsulate the stabs within MIPS ECOFF.
  422.  
  423. `-mgas'
  424.      Generate code for the GNU assembler.  This is the default on the
  425.      OSF/1 reference platform, using the OSF/rose object format.
  426.  
  427. `-mrnames'
  428. `-mno-rnames'
  429.      The `-mrnames' switch says to output code using the MIPS software
  430.      names for the registers, instead of the hardware names (ie, A0
  431.      instead of $4).  The only known assembler that supports this option
  432.      is the Algorithmics assembler.
  433.  
  434. `-mgpopt'
  435. `-mno-gpopt'
  436.      The `-mgpopt' switch says to write all of the data declarations
  437.      before the instructions in the text section, this allows the MIPS
  438.      assembler to generate one word memory references instead of using
  439.      two words for short global or static data items.  This is on by
  440.      default if optimization is selected.
  441.  
  442. `-mstats'
  443. `-mno-stats'
  444.      For each non-inline function processed, the `-mstats' switch
  445.      causes the compiler to emit one line to the standard error file to
  446.      print statistics about the program (number of registers saved,
  447.      stack size, etc.).
  448.  
  449. `-mmemcpy'
  450. `-mno-memcpy'
  451.      The `-mmemcpy' switch makes all block moves call the appropriate
  452.      string function (`memcpy' or `bcopy') instead of possibly
  453.      generating inline code.
  454.  
  455. `-mmips-tfile'
  456. `-mno-mips-tfile'
  457.      The `-mno-mips-tfile' switch causes the compiler not postprocess
  458.      the object file with the `mips-tfile' program, after the MIPS
  459.      assembler has generated it to add debug support.  If `mips-tfile'
  460.      is not run, then no local variables will be available to the
  461.      debugger.  In addition, `stage2' and `stage3' objects will have
  462.      the temporary file names passed to the assembler embedded in the
  463.      object file, which means the objects will not compare the same.
  464.      The `-mno-mips-tfile' switch should only be used when there are
  465.      bugs in the `mips-tfile' program that prevents compilation.
  466.  
  467. `-msoft-float'
  468.      Generate output containing library calls for floating point.
  469.      *Warning:* the requisite libraries are not part of GNU CC.
  470.      Normally the facilities of the machine's usual C compiler are
  471.      used, but this can't be done directly in cross-compilation.  You
  472.      must make your own arrangements to provide suitable library
  473.      functions for cross-compilation.
  474.  
  475. `-mhard-float'
  476.      Generate output containing floating point instructions.  This is
  477.      the default if you use the unmodified sources.
  478.  
  479. `-mabicalls'
  480. `-mno-abicalls'
  481.      Emit (or do not emit) the pseudo operations `.abicalls',
  482.      `.cpload', and `.cprestore' that some System V.4 ports use for
  483.      position independent code.
  484.  
  485. `-mlong-calls'
  486. `-mno-long-calls'
  487.      Do all calls with the `JALR' instruction, which requires loading
  488.      up a function's address into a register before the call.  You need
  489.      to use this switch, if you call outside of the current 512
  490.      megabyte segment to functions that are not through pointers.
  491.  
  492. `-mhalf-pic'
  493. `-mno-half-pic'
  494.      Put pointers to extern references into the data section and load
  495.      them up, rather than put the references in the text section.
  496.  
  497. `-membedded-pic'
  498. `-mno-embedded-pic'
  499.      Generate PIC code suitable for some embedded systems.  All calls
  500.      are made using PC relative address, and all data is addressed
  501.      using the $gp register.  This requires GNU as and GNU ld which do
  502.      most of the work.
  503.  
  504. `-membedded-data'
  505. `-mno-embedded-data'
  506.      Allocate variables to the read-only data section first if
  507.      possible, then next in the small data section if possible,
  508.      otherwise in data.  This gives slightly slower code than the
  509.      default, but reduces the amount of RAM required when executing,
  510.      and thus may be preferred for some embedded systems.
  511.  
  512. `-G NUM'
  513.      Put global and static items less than or equal to NUM bytes into
  514.      the small data or bss sections instead of the normal data or bss
  515.      section.  This allows the assembler to emit one word memory
  516.      reference instructions based on the global pointer (GP or $28),
  517.      instead of the normal two words used.  By default, NUM is 8 when
  518.      the MIPS assembler is used, and 0 when the GNU assembler is used.
  519.      The `-G NUM' switch is also passed to the assembler and linker.
  520.      All modules should be compiled with the same `-G NUM' value.
  521.  
  522. `-nocpp'
  523.      Tell the MIPS assembler to not run it's preprocessor over user
  524.      assembler files (with a `.s' suffix) when assembling them.
  525.  
  526.    These options are defined by the macro `TARGET_SWITCHES' in the
  527. machine description.  The default for the options is also defined by
  528. that macro, which enables you to change the defaults.
  529.  
  530. File: gcc.info,  Node: i386 Options,  Next: HPPA Options,  Prev: MIPS Options,  Up: Submodel Options
  531.  
  532. Intel 386 Options
  533. -----------------
  534.  
  535.    These `-m' options are defined for the i386 family of computers:
  536.  
  537. `-m486'
  538. `-mno-486'
  539.      Control whether or not code is optimized for a 486 instead of an
  540.      386.  Code generated for an 486 will run on a 386 and vice versa.
  541.  
  542. `-msoft-float'
  543.      Generate output containing library calls for floating point.
  544.      *Warning:* the requisite libraries are not part of GNU CC.
  545.      Normally the facilities of the machine's usual C compiler are
  546.      used, but this can't be done directly in cross-compilation.  You
  547.      must make your own arrangements to provide suitable library
  548.      functions for cross-compilation.
  549.  
  550.      On machines where a function returns floating point results in the
  551.      80387 register stack, some floating point opcodes may be emitted
  552.      even if `-msoft-float' is used.
  553.  
  554. `-mno-fp-ret-in-387'
  555.      Do not use the FPU registers for return values of functions.
  556.  
  557.      The usual calling convention has functions return values of types
  558.      `float' and `double' in an FPU register, even if there is no FPU.
  559.      The idea is that the operating system should emulate an FPU.
  560.  
  561.      The option `-mno-fp-ret-in-387' causes such values to be returned
  562.      in ordinary CPU registers instead.
  563.  
  564. `-mno-fancy-math-387'
  565.      Some 387 emulators do not support the `sin', `cos' and `sqrt'
  566.      instructions for the 387.  Specify this option to avoid generating
  567.      those instructions. This option is the default on FreeBSD.
  568.  
  569. File: gcc.info,  Node: HPPA Options,  Next: Intel 960 Options,  Prev: i386 Options,  Up: Submodel Options
  570.  
  571. HPPA Options
  572. ------------
  573.  
  574.    These `-m' options are defined for the HPPA family of computers:
  575.  
  576. `-mpa-risc-1-0'
  577.      Generate code for a PA 1.0 processor.
  578.  
  579. `-mpa-risc-1-1'
  580.      Generate code for a PA 1.1 processor.
  581.  
  582. `-mjump-in-delay'
  583.      Fill delay slots of function calls with unconditional jump
  584.      instructions by modifying the return pointer for the function call
  585.      to be the target of the conditional jump.
  586.  
  587. `-mlong-calls'
  588.      Generate code which allows calls to functions greater than 256k
  589.      away from the caller when the caller and callee are in the same
  590.      source file.  Do not turn this option on unless code refuses to
  591.      link with "branch out of range errors" from the linker.
  592.  
  593. `-mdisable-fpregs'
  594.      Prevent floating point registers from being used in any manner.
  595.      This is necessary for compiling kernels which perform lazy context
  596.      switching of floating point registers.  If you use this option and
  597.      attempt to perform floating point operations, the compiler will
  598.      abort.
  599.  
  600. `-mdisable-indexing'
  601.      Prevent the compiler from using indexing address modes.  This
  602.      avoids some rather obscure problems when compiling MIG generated
  603.      code under MACH.
  604.  
  605. `-mportable-runtime'
  606.      Use the portable calling conventions proposed by HP for ELF
  607.      systems.  Note this option also enables `-mlong-calls'.
  608.  
  609. `-mgas'
  610.      Unable the use of assembler directives only GAS understands.
  611.  
  612. File: gcc.info,  Node: Intel 960 Options,  Next: DEC Alpha Options,  Prev: HPPA Options,  Up: Submodel Options
  613.  
  614. Intel 960 Options
  615. -----------------
  616.  
  617.    These `-m' options are defined for the Intel 960 implementations:
  618.  
  619. `-mCPU TYPE'
  620.      Assume the defaults for the machine type CPU TYPE for some of the
  621.      other options, including instruction scheduling, floating point
  622.      support, and addressing modes.  The choices for CPU TYPE are `ka',
  623.      `kb', `mc', `ca', `cf', `sa', and `sb'.  The default is `kb'.
  624.  
  625. `-mnumerics'
  626. `-msoft-float'
  627.      The `-mnumerics' option indicates that the processor does support
  628.      floating-point instructions.  The `-msoft-float' option indicates
  629.      that floating-point support should not be assumed.
  630.  
  631. `-mleaf-procedures'
  632. `-mno-leaf-procedures'
  633.      Do (or do not) attempt to alter leaf procedures to be callable
  634.      with the `bal' instruction as well as `call'.  This will result in
  635.      more efficient code for explicit calls when the `bal' instruction
  636.      can be substituted by the assembler or linker, but less efficient
  637.      code in other cases, such as calls via function pointers, or using
  638.      a linker that doesn't support this optimization.
  639.  
  640. `-mtail-call'
  641. `-mno-tail-call'
  642.      Do (or do not) make additional attempts (beyond those of the
  643.      machine-independent portions of the compiler) to optimize
  644.      tail-recursive calls into branches.  You may not want to do this
  645.      because the detection of cases where this is not valid is not
  646.      totally complete.  The default is `-mno-tail-call'.
  647.  
  648. `-mcomplex-addr'
  649. `-mno-complex-addr'
  650.      Assume (or do not assume) that the use of a complex addressing
  651.      mode is a win on this implementation of the i960.  Complex
  652.      addressing modes may not be worthwhile on the K-series, but they
  653.      definitely are on the C-series.  The default is currently
  654.      `-mcomplex-addr' for all processors except the CB and CC.
  655.  
  656. `-mcode-align'
  657. `-mno-code-align'
  658.      Align code to 8-byte boundaries for faster fetching (or don't
  659.      bother).  Currently turned on by default for C-series
  660.      implementations only.
  661.  
  662. `-mic-compat'
  663. `-mic2.0-compat'
  664. `-mic3.0-compat'
  665.      Enable compatibility with iC960 v2.0 or v3.0.
  666.  
  667. `-masm-compat'
  668. `-mintel-asm'
  669.      Enable compatibility with the iC960 assembler.
  670.  
  671. `-mstrict-align'
  672. `-mno-strict-align'
  673.      Do not permit (do permit) unaligned accesses.
  674.  
  675. `-mold-align'
  676.      Enable structure-alignment compatibility with Intel's gcc release
  677.      version 1.3 (based on gcc 1.37).  Currently this is buggy in that
  678.      `#pragma align 1' is always assumed as well, and cannot be turned
  679.      off.
  680.  
  681. File: gcc.info,  Node: DEC Alpha Options,  Next: Clipper Options,  Prev: Intel 960 Options,  Up: Submodel Options
  682.  
  683. DEC Alpha Options
  684. -----------------
  685.  
  686.    These `-m' options are defined for the DEC Alpha implementations:
  687.  
  688. `-mno-soft-float'
  689. `-msoft-float'
  690.      Use (do not use) the hardware floating-point instructions for
  691.      floating-point operations.  When `-msoft-float' is specified,
  692.      functions in `libgcc1.c' will be used to perform floating-point
  693.      operations.  Unless they are replaced by routines that emulate the
  694.      floating-point operations, or compiled in such a way as to call
  695.      such emulations routines, these routines will issue floating-point
  696.      operations.   If you are compiling for an Alpha without
  697.      floating-point operations, you must ensure that the library is
  698.      built so as not to call them.
  699.  
  700.      Note that Alpha implementations without floating-point operations
  701.      are required to have floating-point registers.
  702.  
  703. `-mfp-reg'
  704. `-mno-fp-regs'
  705.      Generate code that uses (does not use) the floating-point register
  706.      set.  `-mno-fp-regs' implies `-msoft-float'.  If the floating-point
  707.      register set is not used, floating point operands are passed in
  708.      integer registers as if they were integers and floating-point
  709.      results are passed in $0 instead of $f0.  This is a non-standard
  710.      calling sequence, so any function with a floating-point argument
  711.      or return value called by code compiled with `-mno-fp-regs' must
  712.      also be compiled with that option.
  713.  
  714.      A typical use of this option is building a kernel that does not
  715.      use, and hence need not save and restore, any floating-point
  716.      registers.
  717.  
  718. File: gcc.info,  Node: Clipper Options,  Next: H8/300 Options,  Prev: DEC Alpha Options,  Up: Submodel Options
  719.  
  720. Clipper Options
  721. ---------------
  722.  
  723.    These `-m' options are defined for the Clipper implementations:
  724.  
  725. `-mc300'
  726.      Produce code for a C300 Clipper processor. This is the default.
  727.  
  728. `-mc400'
  729.      Produce code for a C400 Clipper processor i.e. use floting point
  730.      registers f8..f15.
  731.  
  732. File: gcc.info,  Node: H8/300 Options,  Next: System V Options,  Prev: Clipper Options,  Up: Submodel Options
  733.  
  734. H8/300 Options
  735. --------------
  736.  
  737.    These `-m' options are defined for the H8/300 implementations:
  738.  
  739. `-mrelax'
  740.      Shorten some address references at link time, when possible; uses
  741.      the linker option `-relax'.  *Note `ld' and the H8/300:
  742.      (ld.info)H8/300, for a fuller description.
  743.  
  744. `-mh'
  745.      Generate code for the H8/300H.
  746.  
  747. File: gcc.info,  Node: System V Options,  Prev: H8/300 Options,  Up: Submodel Options
  748.  
  749. Options for System V
  750. --------------------
  751.  
  752.    These additional options are available on System V Release 4 for
  753. compatibility with other compilers on those systems:
  754.  
  755. `-Qy'
  756.      Identify the versions of each tool used by the compiler, in a
  757.      `.ident' assembler directive in the output.
  758.  
  759. `-Qn'
  760.      Refrain from adding `.ident' directives to the output file (this is
  761.      the default).
  762.  
  763. `-YP,DIRS'
  764.      Search the directories DIRS, and no others, for libraries
  765.      specified with `-l'.
  766.  
  767. `-Ym,DIR'
  768.      Look in the directory DIR to find the M4 preprocessor.  The
  769.      assembler uses this option.
  770.  
  771. File: gcc.info,  Node: Code Gen Options,  Next: Environment Variables,  Prev: Submodel Options,  Up: Invoking GCC
  772.  
  773. Options for Code Generation Conventions
  774. =======================================
  775.  
  776.    These machine-independent options control the interface conventions
  777. used in code generation.
  778.  
  779.    Most of them have both positive and negative forms; the negative form
  780. of `-ffoo' would be `-fno-foo'.  In the table below, only one of the
  781. forms is listed--the one which is not the default.  You can figure out
  782. the other form by either removing `no-' or adding it.
  783.  
  784. `-fpcc-struct-return'
  785.      Return "short" `struct' and `union' values in memory like longer
  786.      ones, rather than in registers.  This convention is less
  787.      efficient, but it has the advantage of allowing intercallability
  788.      between GNU CC-compiled files and files compiled with other
  789.      compilers.
  790.  
  791.      The precise convention for returning structures in memory depends
  792.      on the target configuration macros.
  793.  
  794.      Short structures and unions are those whose size and alignment
  795.      match that of some integer type.
  796.  
  797. `-freg-struct-return'
  798.      Use the convention that `struct' and `union' values are returned
  799.      in registers when possible.  This is more efficient for small
  800.      structures than `-fpcc-struct-return'.
  801.  
  802.      If you specify neither `-fpcc-struct-return' nor its contrary
  803.      `-freg-struct-return', GNU CC defaults to whichever convention is
  804.      standard for the target.  If there is no standard convention, GNU
  805.      CC defaults to `-fpcc-struct-return', except on targets where GNU
  806.      CC is the principal compiler.  In those cases, we can choose the
  807.      standard, and we chose the more efficient register return
  808.      alternative.
  809.  
  810. `-fshort-enums'
  811.      Allocate to an `enum' type only as many bytes as it needs for the
  812.      declared range of possible values.  Specifically, the `enum' type
  813.      will be equivalent to the smallest integer type which has enough
  814.      room.
  815.  
  816. `-fshort-double'
  817.      Use the same size for `double' as for `float'.
  818.  
  819. `-fshared-data'
  820.      Requests that the data and non-`const' variables of this
  821.      compilation be shared data rather than private data.  The
  822.      distinction makes sense only on certain operating systems, where
  823.      shared data is shared between processes running the same program,
  824.      while private data exists in one copy per process.
  825.  
  826. `-fno-common'
  827.      Allocate even uninitialized global variables in the bss section of
  828.      the object file, rather than generating them as common blocks.
  829.      This has the effect that if the same variable is declared (without
  830.      `extern') in two different compilations, you will get an error
  831.      when you link them.  The only reason this might be useful is if
  832.      you wish to verify that the program will work on other systems
  833.      which always work this way.
  834.  
  835. `-fno-ident'
  836.      Ignore the `#ident' directive.
  837.  
  838. `-fno-gnu-linker'
  839.      Do not output global initializations (such as C++ constructors and
  840.      destructors) in the form used by the GNU linker (on systems where
  841.      the GNU linker is the standard method of handling them).  Use this
  842.      option when you want to use a non-GNU linker, which also requires
  843.      using the `collect2' program to make sure the system linker
  844.      includes constructors and destructors.  (`collect2' is included in
  845.      the GNU CC distribution.)  For systems which *must* use
  846.      `collect2', the compiler driver `gcc' is configured to do this
  847.      automatically.
  848.  
  849. `-finhibit-size-directive'
  850.      Don't output a `.size' assembler directive, or anything else that
  851.      would cause trouble if the function is split in the middle, and the
  852.      two halves are placed at locations far apart in memory.  This
  853.      option is used when compiling `crtstuff.c'; you should not need to
  854.      use it for anything else.
  855.  
  856. `-fverbose-asm'
  857.      Put extra commentary information in the generated assembly code to
  858.      make it more readable.  This option is generally only of use to
  859.      those who actually need to read the generated assembly code
  860.      (perhaps while debugging the compiler itself).
  861.  
  862. `-fvolatile'
  863.      Consider all memory references through pointers to be volatile.
  864.  
  865. `-fvolatile-global'
  866.      Consider all memory references to extern and global data items to
  867.      be volatile.
  868.  
  869. `-fpic'
  870.      Generate position-independent code (PIC) suitable for use in a
  871.      shared library, if supported for the target machine.  Such code
  872.      accesses all constant addresses through a global offset table
  873.      (GOT).  If the GOT size for the linked executable exceeds a
  874.      machine-specific maximum size, you get an error message from the
  875.      linker indicating that `-fpic' does not work; in that case,
  876.      recompile with `-fPIC' instead.  (These maximums are 16k on the
  877.      m88k, 8k on the Sparc, and 32k on the m68k and RS/6000.  The 386
  878.      has no such limit.)
  879.  
  880.      Position-independent code requires special support, and therefore
  881.      works only on certain machines.  For the 386, GNU CC supports PIC
  882.      for System V but not for the Sun 386i.  Code generated for the IBM
  883.      RS/6000 is always position-independent.
  884.  
  885.      The GNU assembler does not fully support PIC.  Currently, you must
  886.      use some other assembler in order for PIC to work.  We would
  887.      welcome volunteers to upgrade GAS to handle this; the first part
  888.      of the job is to figure out what the assembler must do differently.
  889.  
  890. `-fPIC'
  891.      If supported for the target machine, emit position-independent
  892.      code, suitable for dynamic linking and avoiding any limit on the
  893.      size of the global offset table.  This option makes a difference
  894.      on the m68k, m88k and the Sparc.
  895.  
  896.      Position-independent code requires special support, and therefore
  897.      works only on certain machines.
  898.  
  899. `-ffixed-REG'
  900.      Treat the register named REG as a fixed register; generated code
  901.      should never refer to it (except perhaps as a stack pointer, frame
  902.      pointer or in some other fixed role).
  903.  
  904.      REG must be the name of a register.  The register names accepted
  905.      are machine-specific and are defined in the `REGISTER_NAMES' macro
  906.      in the machine description macro file.
  907.  
  908.      This flag does not have a negative form, because it specifies a
  909.      three-way choice.
  910.  
  911. `-fcall-used-REG'
  912.      Treat the register named REG as an allocatable register that is
  913.      clobbered by function calls.  It may be allocated for temporaries
  914.      or variables that do not live across a call.  Functions compiled
  915.      this way will not save and restore the register REG.
  916.  
  917.      Use of this flag for a register that has a fixed pervasive role in
  918.      the machine's execution model, such as the stack pointer or frame
  919.      pointer, will produce disastrous results.
  920.  
  921.      This flag does not have a negative form, because it specifies a
  922.      three-way choice.
  923.  
  924. `-fcall-saved-REG'
  925.      Treat the register named REG as an allocatable register saved by
  926.      functions.  It may be allocated even for temporaries or variables
  927.      that live across a call.  Functions compiled this way will save
  928.      and restore the register REG if they use it.
  929.  
  930.      Use of this flag for a register that has a fixed pervasive role in
  931.      the machine's execution model, such as the stack pointer or frame
  932.      pointer, will produce disastrous results.
  933.  
  934.      A different sort of disaster will result from the use of this flag
  935.      for a register in which function values may be returned.
  936.  
  937.      This flag does not have a negative form, because it specifies a
  938.      three-way choice.
  939.  
  940. `+e0'
  941. `+e1'
  942.      Control whether virtual function definitions in classes are used to
  943.      generate code, or only to define interfaces for their callers.
  944.      (C++ only).
  945.  
  946.      These options are provided for compatibility with `cfront' 1.x
  947.      usage; the recommended alternative GNU C++ usage is in flux.
  948.      *Note Declarations and Definitions in One Header: C++ Interface.
  949.  
  950.      With `+e0', virtual function definitions in classes are declared
  951.      `extern'; the declaration is used only as an interface
  952.      specification, not to generate code for the virtual functions (in
  953.      this compilation).
  954.  
  955.      With `+e1', G++ actually generates the code implementing virtual
  956.      functions defined in the code, and makes them publicly visible.
  957.  
  958. File: gcc.info,  Node: Environment Variables,  Next: Running Protoize,  Prev: Code Gen Options,  Up: Invoking GCC
  959.  
  960. Environment Variables Affecting GNU CC
  961. ======================================
  962.  
  963.    This section describes several environment variables that affect how
  964. GNU CC operates.  They work by specifying directories or prefixes to use
  965. when searching for various kinds of files.
  966.  
  967.    Note that you can also specify places to search using options such as
  968. `-B', `-I' and `-L' (*note Directory Options::.).  These take
  969. precedence over places specified using environment variables, which in
  970. turn take precedence over those specified by the configuration of GNU
  971. CC.  *Note Driver::.
  972.  
  973. `TMPDIR'
  974.      If `TMPDIR' is set, it specifies the directory to use for temporary
  975.      files.  GNU CC uses temporary files to hold the output of one
  976.      stage of compilation which is to be used as input to the next
  977.      stage: for example, the output of the preprocessor, which is the
  978.      input to the compiler proper.
  979.  
  980. `GCC_EXEC_PREFIX'
  981.      If `GCC_EXEC_PREFIX' is set, it specifies a prefix to use in the
  982.      names of the subprograms executed by the compiler.  No slash is
  983.      added when this prefix is combined with the name of a subprogram,
  984.      but you can specify a prefix that ends with a slash if you wish.
  985.  
  986.      If GNU CC cannot find the subprogram using the specified prefix, it
  987.      tries looking in the usual places for the subprogram.
  988.  
  989.      The default value of `GCC_EXEC_PREFIX' is
  990.      `PREFIX/lib/gcc-lib/MACHINE/VERSION/' where PREFIX is the value of
  991.      `prefix' when you ran the `configure' script and MACHINE and
  992.      VERSION are the configuration name and version number of GNU CC,
  993.      respectively.
  994.  
  995.      Other prefixes specified with `-B' take precedence over this
  996.      prefix.
  997.  
  998.      This prefix is also used for finding files such as `crt0.o' that
  999.      are used for linking.
  1000.  
  1001.      In addition, the prefix is used in an unusual way in finding the
  1002.      directories to search for header files.  For each of the standard
  1003.      directories whose name normally begins with
  1004.      `/usr/local/lib/gcc-lib' (more precisely, with the value of
  1005.      `GCC_INCLUDE_DIR'), GNU CC tries replacing that beginning with the
  1006.      specified prefix to produce an alternate directory name.  Thus,
  1007.      with `-Bfoo/', GNU CC will search `foo/bar' where it would
  1008.      normally search `/usr/local/lib/bar'.  These alternate directories
  1009.      are searched first; the standard directories come next.
  1010.  
  1011. `COMPILER_PATH'
  1012.      The value of `COMPILER_PATH' is a colon-separated list of
  1013.      directories, much like `PATH'.  GNU CC tries the directories thus
  1014.      specified when searching for subprograms, if it can't find the
  1015.      subprograms using `GCC_EXEC_PREFIX'.
  1016.  
  1017. `LIBRARY_PATH'
  1018.      The value of `LIBRARY_PATH' is a colon-separated list of
  1019.      directories, much like `PATH'.  GNU CC tries the directories thus
  1020.      specified when searching for special linker files, if it can't
  1021.      find them using `GCC_EXEC_PREFIX'.  Linking using GNU CC also uses
  1022.      these directories when searching for ordinary libraries for the
  1023.      `-l' option (but directories specified with `-L' come first).
  1024.  
  1025. `C_INCLUDE_PATH'
  1026. `CPLUS_INCLUDE_PATH'
  1027. `OBJC_INCLUDE_PATH'
  1028.      These environment variables pertain to particular languages.  Each
  1029.      variable's value is a colon-separated list of directories, much
  1030.      like `PATH'.  When GNU CC searches for header files, it tries the
  1031.      directories listed in the variable for the language you are using,
  1032.      after the directories specified with `-I' but before the standard
  1033.      header file directories.
  1034.  
  1035. `DEPENDENCIES_OUTPUT'
  1036.      If this variable is set, its value specifies how to output
  1037.      dependencies for Make based on the header files processed by the
  1038.      compiler.  This output looks much like the output from the `-M'
  1039.      option (*note Preprocessor Options::.), but it goes to a separate
  1040.      file, and is in addition to the usual results of compilation.
  1041.  
  1042.      The value of `DEPENDENCIES_OUTPUT' can be just a file name, in
  1043.      which case the Make rules are written to that file, guessing the
  1044.      target name from the source file name.  Or the value can have the
  1045.      form `FILE TARGET', in which case the rules are written to file
  1046.      FILE using TARGET as the target name.
  1047.  
  1048. File: gcc.info,  Node: Running Protoize,  Prev: Environment Variables,  Up: Invoking GCC
  1049.  
  1050. Running Protoize
  1051. ================
  1052.  
  1053.    The program `protoize' is an optional part of GNU C.  You can use it
  1054. to add prototypes to a program, thus converting the program to ANSI C
  1055. in one respect.  The companion program `unprotoize' does the reverse:
  1056. it removes argument types from any prototypes that are found.
  1057.  
  1058.    When you run these programs, you must specify a set of source files
  1059. as command line arguments.  The conversion programs start out by
  1060. compiling these files to see what functions they define.  The
  1061. information gathered about a file FOO is saved in a file named `FOO.X'.
  1062.  
  1063.    After scanning comes actual conversion.  The specified files are all
  1064. eligible to be converted; any files they include (whether sources or
  1065. just headers) are eligible as well.
  1066.  
  1067.    But not all the eligible files are converted.  By default,
  1068. `protoize' and `unprotoize' convert only source and header files in the
  1069. current directory.  You can specify additional directories whose files
  1070. should be converted with the `-d DIRECTORY' option.  You can also
  1071. specify particular files to exclude with the `-x FILE' option.  A file
  1072. is converted if it is eligible, its directory name matches one of the
  1073. specified directory names, and its name within the directory has not
  1074. been excluded.
  1075.  
  1076.    Basic conversion with `protoize' consists of rewriting most function
  1077. definitions and function declarations to specify the types of the
  1078. arguments.  The only ones not rewritten are those for varargs functions.
  1079.  
  1080.    `protoize' optionally inserts prototype declarations at the
  1081. beginning of the source file, to make them available for any calls that
  1082. precede the function's definition.  Or it can insert prototype
  1083. declarations with block scope in the blocks where undeclared functions
  1084. are called.
  1085.  
  1086.    Basic conversion with `unprotoize' consists of rewriting most
  1087. function declarations to remove any argument types, and rewriting
  1088. function definitions to the old-style pre-ANSI form.
  1089.  
  1090.    Both conversion programs print a warning for any function
  1091. declaration or definition that they can't convert.  You can suppress
  1092. these warnings with `-q'.
  1093.  
  1094.    The output from `protoize' or `unprotoize' replaces the original
  1095. source file.  The original file is renamed to a name ending with
  1096. `.save'.  If the `.save' file already exists, then the source file is
  1097. simply discarded.
  1098.  
  1099.    `protoize' and `unprotoize' both depend on GNU CC itself to scan the
  1100. program and collect information about the functions it uses.  So
  1101. neither of these programs will work until GNU CC is installed.
  1102.  
  1103.    Here is a table of the options you can use with `protoize' and
  1104. `unprotoize'.  Each option works with both programs unless otherwise
  1105. stated.
  1106.  
  1107. `-B DIRECTORY'
  1108.      Look for the file `SYSCALLS.c.X' in DIRECTORY, instead of the
  1109.      usual directory (normally `/usr/local/lib').  This file contains
  1110.      prototype information about standard system functions.  This option
  1111.      applies only to `protoize'.
  1112.  
  1113. `-c COMPILATION-OPTIONS'
  1114.      Use  COMPILATION-OPTIONS as the options when running `gcc' to
  1115.      produce the `.X' files.  The special option `-aux-info' is always
  1116.      passed in addition, to tell `gcc' to write a `.X' file.
  1117.  
  1118.      Note that the compilation options must be given as a single
  1119.      argument to `protoize' or `unprotoize'.  If you want to specify
  1120.      several `gcc' options, you must quote the entire set of
  1121.      compilation options to make them a single word in the shell.
  1122.  
  1123.      There are certain `gcc' arguments that you cannot use, because they
  1124.      would produce the wrong kind of output.  These include `-g', `-O',
  1125.      `-c', `-S', and `-o' If you include these in the
  1126.      COMPILATION-OPTIONS, they are ignored.
  1127.  
  1128. `-C'
  1129.      Rename files to end in `.C' instead of `.c'.  This is convenient
  1130.      if you are converting a C program to C++.  This option applies
  1131.      only to `protoize'.
  1132.  
  1133. `-g'
  1134.      Add explicit global declarations.  This means inserting explicit
  1135.      declarations at the beginning of each source file for each function
  1136.      that is called in the file and was not declared.  These
  1137.      declarations precede the first function definition that contains a
  1138.      call to an undeclared function.  This option applies only to
  1139.      `protoize'.
  1140.  
  1141. `-i STRING'
  1142.      Indent old-style parameter declarations with the string STRING.
  1143.      This option applies only to `protoize'.
  1144.  
  1145.      `unprotoize' converts prototyped function definitions to old-style
  1146.      function definitions, where the arguments are declared between the
  1147.      argument list and the initial `{'.  By default, `unprotoize' uses
  1148.      five spaces as the indentation.  If you want to indent with just
  1149.      one space instead, use `-i " "'.
  1150.  
  1151. `-k'
  1152.      Keep the `.X' files.  Normally, they are deleted after conversion
  1153.      is finished.
  1154.  
  1155. `-l'
  1156.      Add explicit local declarations.  `protoize' with `-l' inserts a
  1157.      prototype declaration for each function in each block which calls
  1158.      the function without any declaration.  This option applies only to
  1159.      `protoize'.
  1160.  
  1161. `-n'
  1162.      Make no real changes.  This mode just prints information about the
  1163.      conversions that would have been done without `-n'.
  1164.  
  1165. `-N'
  1166.      Make no `.save' files.  The original files are simply deleted.
  1167.      Use this option with caution.
  1168.  
  1169. `-p PROGRAM'
  1170.      Use the program PROGRAM as the compiler.  Normally, the name `gcc'
  1171.      is used.
  1172.  
  1173. `-q'
  1174.      Work quietly.  Most warnings are suppressed.
  1175.  
  1176. `-v'
  1177.      Print the version number, just like `-v' for `gcc'.
  1178.  
  1179.    If you need special compiler options to compile one of your program's
  1180. source files, then you should generate that file's `.X' file specially,
  1181. by running `gcc' on that source file with the appropriate options and
  1182. the option `-aux-info'.  Then run `protoize' on the entire set of
  1183. files.  `protoize' will use the existing `.X' file because it is newer
  1184. than the source file.  For example:
  1185.  
  1186.      gcc -Dfoo=bar file1.c -aux-info
  1187.      protoize *.c
  1188.  
  1189. You need to include the special files along with the rest in the
  1190. `protoize' command, even though their `.X' files already exist, because
  1191. otherwise they won't get converted.
  1192.  
  1193.    *Note Protoize Caveats::, for more information on how to use
  1194. `protoize' successfully.
  1195.  
  1196.